package com.simple.simple_view.domain.entity;

import java.util.Date;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
/**
 * 评论表(Comment)表实体类
 *
 * @author makejava
 * @since 2023-11-02 17:58:14
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("comment")
public class Comment  {
//主键
    @TableId
    private Long id;

//视频id
    private Long videoId;
//评论人id
    private Long userId;
//回复谁，0为根评论 其他值为回复谁
    private Long toUserId;
//回复的评论的id(0为根评论)
    private Long toCommentId;
    //在哪个评论下(0表示根评论)
    private Long inCommentId;
//评论内容
    private String content;
//创建时间
    private Date createTime;
//删除时间
    private Date deleteTime;

}
